version 8.2
capture clear
capture log close
set more off
set mem 500m
set mat 4000



cd "/Users/chemin/Dropbox/peer effects/dofiles/To upload"


do "Preparation.do"
*This uses grades.dta
*this generates: data_for_regression.dta
*a database with one line per student

do "Preparation_data_opinion surveys.do"
*merges with Opinion surveys
*Merges with coding of MyCourses activity and free rider denunciations
*to generate: data_for_regression_opinion surveys_freerider.dta

do "Append.do"
*Appends dataset to create one line per teamwork
*Generates "data_mcgill_final.dta"

do "Regressions.do"
*Creates Tables 3,4,5,6

do "Table1.do"
*Creates Table 1

do "Test_randomization.do"
*Creates Table 2
